package com.gdut.simple.model.impl;

import com.gdut.simple.common.RequestCallback;
import com.gdut.simple.data.entity.News;
import com.gdut.simple.data.remote.RemoteRepository;
import com.gdut.simple.model.INewsModel;

import java.util.List;

public class NewsModelImpl implements INewsModel {

    @Override
    public void refresh(String type, int num, RequestCallback<List<News>> callback) {
        RemoteRepository.getNews(type, 1, num, callback);
    }

    @Override
    public void loadMore(String type, int page, int num, RequestCallback<List<News>> callback) {
        RemoteRepository.getNews(type, page, num, callback);
    }
}
